import dayjs from 'dayjs';

export default [
  {
    title: '生产型号',
    key: 'moduleNo'
  },
  {
    title: '录入时间',
    key: 'modifyTime',
    customRender: row => {
      return dayjs(row.modifyTime).format('YYYY-MM-DD HH:mm:ss');
    }
  },
  { title: '检验类型', key: 'inspectType' },
  { title: '检验数量(PNL)', key: 'quantity' },
  { title: '工程图变更检查', key: 'drawingChangeChecks' },
  { title: '线别', key: 'line' },
  { title: '板厚(mm)要求', key: 'cuttingThickness' },
  { title: '板厚(mm)实际', key: 'plateThicknessActualValue' },
  { title: '铜箔厚度(oz)(要求)', key: 'cuttingCopper' },
  { title: '铜箔厚度(um)实际', key: 'foilThicknessActualValue' },
  { title: '单线阻抗线宽(mil)要求', key: 'singleLineImpedanceRequiredValue' },
  { title: '单线阻抗线宽(mil)实际', key: 'singleLineImpedanceActualValue' },
  { title: '单线阻抗线宽层次', key: 'singleLineImpedanceLevel' },
  { title: '双线阻抗线宽(mil)要求', key: 'doubleLineImpedanceRequiredValue' },
  { title: '双线阻抗线宽(mil)实际', key: 'doubleLineImpedanceActualValue' },
  { title: '双线阻抗线宽层次', key: 'doubleLineImpedanceLevel' },
  { title: '线宽(mm)要求1', key: 'lineWidthRequired' },
  { title: '线宽(mm)实际1', key: 'lineWidthActual' },
  { title: '线宽层次1', key: 'lineWidthLevel' },
  { title: '线宽(mm)要求2', key: 'lineWidthRequired2' },
  { title: '线宽(mm)实际2', key: 'lineWidthActual2' },
  { title: '线宽层次2', key: 'lineWidthLevel2' },
  { title: '线距(mm)要求1', key: 'lineSpacingRequired' },
  { title: '线距(mm)实际1', key: 'lineSpacingActual' },
  { title: '线距层次1', key: 'lineSpacingLevel' },
  { title: '线距(mm)要求2', key: 'lineSpacingRequired2' },
  { title: '线距(mm)实际2', key: 'lineSpacingActual2' },
  { title: '线距层次2', key: 'lineSpacingLevel2' },
  { title: '判定', key: 'result' },
  { title: '不良数', key: 'ngNum' },
  { title: '不良率', key: 'ngRatio' },
  {
    title: '班别',
    key: 'shiftType',
    customRender: row => {
      return ['白班', '夜班'][row.shiftType];
    }
  },
  {
    title: '检验人',
    key: 'operator'
  },
  {
    title: '审核人',
    key: 'checker'
  },
  {
    title: '审核时间',
    key: 'checkTime'
  },
  {
    title: '备注',
    key: 'remark'
  }
];
